#!/usr/bin/env bun

import { execSync } from 'child_process';

// Only run husky setup in development environment
if (process.env.NODE_ENV !== 'production' && process.env.CI !== 'true') {
  try {
    execSync('husky', { stdio: 'inherit' });
    console.log('✅ Husky setup completed');
  } catch (error) {
    console.warn('⚠️  Husky setup failed, but continuing...');
    console.warn('Error:', error instanceof Error ? error.message : error);
  }
} else {
  console.log('🚀 Skipping Husky setup in production/CI environment');
}
